package com.atwu.wl2022.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * 日志篇
 * @author wulejay
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "diary")
public class Diary {

	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 创建时间
	 */
	@TableField( "date_time" )
	private Date dateTime;

	/**
	 * 	日志内容
	 */
	@TableField("content")
	private String content;

}
